package com.ruoyi.wcf.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wcf.mapper.WcfDisposeShopSceneMapper;
import com.ruoyi.wcf.domain.WcfDisposeShopScene;
import com.ruoyi.wcf.service.IWcfDisposeShopSceneService;

/**
 * 客户管理-店铺场景设置Service业务层处理
 *
 * @author ruoyi
 * @date 2022-03-30
 */
@Service
public class WcfDisposeShopSceneServiceImpl implements IWcfDisposeShopSceneService
{
    @Autowired
    private WcfDisposeShopSceneMapper wcfDisposeShopSceneMapper;

    /**
     * 查询客户管理-店铺场景设置
     *
     * @param id 客户管理-店铺场景设置主键
     * @return 客户管理-店铺场景设置
     */
    @Override
    public WcfDisposeShopScene selectWcfDisposeShopSceneById(Long id)
    {
        return wcfDisposeShopSceneMapper.selectWcfDisposeShopSceneById(id);
    }

    /**
     * 查询客户管理-店铺场景设置列表
     *
     * @param wcfDisposeShopScene 客户管理-店铺场景设置
     * @return 客户管理-店铺场景设置
     */
    @Override
    public List<WcfDisposeShopScene> selectWcfDisposeShopSceneList(WcfDisposeShopScene wcfDisposeShopScene)
    {
        return wcfDisposeShopSceneMapper.selectWcfDisposeShopSceneList(wcfDisposeShopScene);
    }

    /**
     * 新增客户管理-店铺场景设置
     *
     * @param wcfDisposeShopScene 客户管理-店铺场景设置
     * @return 结果
     */
    @Override
    public int insertWcfDisposeShopScene(WcfDisposeShopScene wcfDisposeShopScene)
    {
        wcfDisposeShopScene.setCreateTime(DateUtils.getNowDate());
        return wcfDisposeShopSceneMapper.insertWcfDisposeShopScene(wcfDisposeShopScene);
    }

    /**
     * 修改客户管理-店铺场景设置
     *
     * @param wcfDisposeShopScene 客户管理-店铺场景设置
     * @return 结果
     */
    @Override
    public int updateWcfDisposeShopScene(WcfDisposeShopScene wcfDisposeShopScene)
    {
        return wcfDisposeShopSceneMapper.updateWcfDisposeShopScene(wcfDisposeShopScene);
    }

    /**
     * 批量删除客户管理-店铺场景设置
     *
     * @param ids 需要删除的客户管理-店铺场景设置主键
     * @return 结果
     */
    @Override
    public int deleteWcfDisposeShopSceneByIds(Long[] ids)
    {
        return wcfDisposeShopSceneMapper.deleteWcfDisposeShopSceneByIds(ids);
    }

    /**
     * 删除客户管理-店铺场景设置信息
     *
     * @param id 客户管理-店铺场景设置主键
     * @return 结果
     */
    @Override
    public int deleteWcfDisposeShopSceneById(Long id)
    {
        return wcfDisposeShopSceneMapper.deleteWcfDisposeShopSceneById(id);
    }
}
